lib/repo: Do account for size with prune --no-prune
authorColin Walters <walters@verbum.org>
Mon, 5 Mar 2018 15:56:45 +0000 (10:56 -0500)
committerAtomic Bot <atomic-devel@projectatomic.io>
Mon, 5 Mar 2018 16:58:12 +0000 (16:58 +0000)
commit733c0498dca8926e9078563240bd06a488fcd527
tree0a23ed6e5fe3d0565b5289102231e593e81cf7fa
parent1214395f0e08c9e895e0983edaee4648b07ec69c
lib/repo: Do account for size with prune --no-prune

I think this got changed in a refactor.  We definitely want
to total up the amount of space that *would* be freed even
with `--no-prune` AKA `OSTREE_REPO_PRUNE_FLAGS_NO_PRUNE`.

It's actually a bit terrifying this is apparently the first test case for
the `--no-prune` option...

Closes: https://github.com/ostreedev/ostree/issues/1480
Closes: #1483
Approved by: jlebon
src/libostree/ostree-repo-prune.c
tests/test-prune.sh